package com.hanZhe.shiro.controller;

import com.hanZhe.bean.User;
import com.hanZhe.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by shw on 2018-02-27.
 */
@Controller
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/getUser")
    public User getUser(){
        User shw = userService.selectUser("shw");
        return shw;
    }

}
